﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace Dracham.Classes
{
    public class OnEnter : Event
    {
        public OnEnter() : base()
        {
        }

        public static OnEnter FromXmlNode(XmlNode node)
        {
            OnEnter oe = new OnEnter();

            if (node == null) return null;

            foreach (XmlNode x in node.ChildNodes)
            {
                if (x.Name == "Teleport") oe.Actions.Add(Teleport.FromXmlNode(x));
            }

            return oe;
        }
    }
}
